<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->

<div id="alpha">
<div id="alpha-inner">
<!--▼SUB NAVI-->
<!--{include file=$tpl_subnavi}-->
<!--▲SUB NAVI-->
</div>
</div>



<div id="beta">
<div id="beta-inner">

<div class="title_page">
<h2><!--{$tpl_subtitle}--></h2>
</div>



<div class="menuclass">
<dl>
<dt>ヘッダー編集</dt>
<dd>
	<!-- プレビューここから -->
	<!--{ if $header_prev == "on"}-->
		<!--{if $browser_type == 1 }-->
	    <div style="zoom:0.8"><!--{include file="`$smarty.const.HTML_PATH`user_data/include/preview/header.tpl"}--></div>
		<!--{ else }-->
		<span class="red12"><b>プレビューはIEでのみ表示されます。</b></span>
		<!--{ /if }-->
	<!--{ /if }-->
	<!-- プレビューここまで -->

	<form name="form_header" id="form_header" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" >
	<input type="hidden" name="mode" value="">
	<input type="hidden" name="division" value="header">
	<input type="hidden" name="header_row" value=<!--{$header_row}-->>
	<input type="hidden" name="browser_type" value="">

	<textarea name="header" cols=90 rows=<!--{$header_row}--> align="left" wrap=off style="width: 650px;"><!--{$header_data|smarty:nodefaults}--></textarea>	
	<p>
	<input type="button" value=<!--{if $header_row > 13}-->"小さくする"<!--{else}-->"大きくする"<!--{/if}--> onClick="ChangeSize(this, header, 50, 13, header_row)">
	</p>
	
		<div class="btn_box">
		<input type='button' value='登録' name='subm' onclick="fnFormModeSubmit('form_header','confirm','','');" />
		<input type='button' value='プレビュー' name='preview' onclick="lfnSetBrowser('form_header', 'browser_type'); fnFormModeSubmit('form_header','preview','','');" />
		</div>

	</form>
</dd>
</dl>
</div>



<div class="menuclass">
<dl>
<dt>フッター編集</dt>
<dd>
	<!--{ if $footer_prev == "on"}-->
		<!--{if $browser_type == 1 }-->
		<div style="zoom:0.8"><!--{include file="`$smarty.const.HTML_PATH`/user_data/include/preview/footer.tpl"}--></div>
		<!--{ else }-->
		<span class="red12"><b>プレビューはIEでのみ表示されます。</b></span>
		<!--{ /if }-->
	<!--{ /if }-->

	<form name="form_footer" id="form_footer" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" >
	<input type="hidden" name="mode" value="">
	<input type="hidden" name="division" value="footer">
	<input type="hidden" name="footer_row" value=<!--{$footer_row}-->>
	<input type="hidden" name="browser_type" value="">

	<textarea name="footer" cols=90 rows=<!--{$footer_row}--> align="left" wrap=off style="width: 650px;"><!--{$footer_data|smarty:nodefaults}--></textarea>
	<p>
	<input type="button" value=<!--{if $footer_row > 13}-->"小さくする"<!--{else}-->"大きくする"<!--{/if}--> onClick="ChangeSize(this, footer, 50, 13, footer_row)">
	</p>

		<div class="btn_box">
		<input type='button' value='登録' name='subm' onclick="fnFormModeSubmit('form_footer','confirm','','');" />
		<input type='button' value='プレビュー' name='preview' onclick="lfnSetBrowser('form_footer', 'browser_type'); fnFormModeSubmit('form_footer','preview','','');" />
		</div>

	</form>
</dd>
</dl>
</div>



<script type="text/javascript">
	/* テキストエリアの大きさを変更する */
	function ChangeSize(button, TextArea, Max, Min, row_tmp){
		if(TextArea.rows <= Min){
			TextArea.rows=Max; button.value="小さくする"; row_tmp.value=Max;
		}else{
			TextArea.rows =Min; button.value="大きくする"; row_tmp.value=Min;
		}
	}
	
	/* ブラウザの種類をセットする */
	function lfnSetBrowser(form, item){
		browser_type = 0;
		if(navigator.userAgent.indexOf("MSIE") >= 0){
		    browser_type = 1;
		}
		else if(navigator.userAgent.indexOf("Gecko/") >= 0){
		    browser_type = 2;
		}
		
		document[form][item].value=browser_type;
	}

</script>

</div>
</div>
